package com.uxwine.alarm.main;

import java.util.*;
import java.util.List;
import java.util.Queue;
import java.util.Stack;

import com.uxwine.alarm.R;
import com.uxwine.view.t.ClockButton;

import android.app.Activity;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Toast;

public class ClockActivity extends Activity
{
	ClickListener clickListener;
	ClockButton clockBtn1, clockBtn2, clockBtn3;
	Stack<Integer> stack;

	@Override
	public void onCreate(Bundle savedInstanceState)
	{
		super.onCreate(savedInstanceState);
		setContentView(R.layout.activity_clock);

		clockBtn1 = (ClockButton) findViewById(R.id.clockBtn1);
		clockBtn2 = (ClockButton) findViewById(R.id.clockBtn2);
		clockBtn3 = (ClockButton) findViewById(R.id.clockBtn3);
		clickListener = new ClickListener();
		clockBtn1.setOnClickListener(clickListener);
		clockBtn2.setOnClickListener(clickListener);
		clockBtn3.setOnClickListener(clickListener);

	}

	class ClickListener implements OnClickListener
	{

		int a = (Integer) clockBtn1.getTag();
		int b = (Integer) clockBtn2.getTag();
		int c = (Integer) clockBtn3.getTag();

		@Override
		public void onClick(View v)
		{
			int id = v.getId();
			if (id == a)
			{

			}
			if (id == b)
			{

			}
			if (id == c)
			{
				Toast.makeText(ClockActivity.this, "停止闹钟", Toast.LENGTH_SHORT).show();
			}

		}
	}
}
